c program to check perfect number or not